package org.singledog.permission.annotation;

import org.singledog.permission.config.PermissionScannerRegistrar;
import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * Permission包扫描
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import(PermissionScannerRegistrar.class)
public @interface PermissionScan {

    /**
     * 扫描对应的包
     * @return 扫描对应的包
     */
    @AliasFor("packages")
    String[] value() default {};

    @AliasFor("value")
    String[] packages() default {};
}
